package com.baseinfo.service;

import com.model.TEmployee;

import javax.persistence.*;
import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @date
 */
public interface EmployeeService {
    public TEmployee saveOrupdate(TEmployee modelParam);

    public TEmployee save(TEmployee modelParam);

    public List<TEmployee> findAll(Map<String, Object> map);

    public TEmployee findById(Long id);

    public void del(Long id);

    public Long getSearchSize(Map<String, Object> map);

    public List<TEmployee> conditionsPage(Map<String, Object> map, Long start, Long length);

    public List<TEmployee> searchPage(Long start, Long length);

    public Long getTotalSize();

}